import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { Logger } from '@nestjs/common';

async function bootstrap() {
  const app = await NestFactory.create(AppModule);

  await app.listen(3000, '0.0.0.0').then(async () => {
    Logger.log(`Server running on ${await app.getUrl()}`, 'Bootstrap');
  });
}

bootstrap();
